// 获取公司用户接口
/*
查询企业部门接口
*/
import request from '@/utils/request'
export function reqGetDepartments() {
  return request({
    method: 'GET',
    url: '/company/department'
  })
}
/**
 * 根据id删除部门
 * **/
export function reqDelDepartments(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'delete'
  })
}
// 新增部门接口
export function reqAddDepartments(data) {
  return request({
    method: 'POST',
    url: '/company/department',
    data
  })
}
// 根据ID查询部门详情
export function reqGetDepartmentDetail(id) {
  return request({
    method: 'GET',
    url: `/company/department/${id}`
  })
}
// 编辑部门接口
export function reqEditDeoart(data) {
  return request({
    method: 'PUT',
    url: `/company/department/${data.id}`,
    data
  })
}
